<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" 
%><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" 
%><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" 
%><%@ page contentType="text/html;charset=ISO-8859-1"
%><html:html locale="true">
    <head>
        <title><bean:message key="coordinacion.title"/></title>
        <html:base/>
        <link rel="stylesheet" type="text/css" href="../css/style.css"></link>
<style type="text/css">
div#box31224 {width: 400px; margin: 40px auto; }
form#31224 {float: left; margin: 0; padding: 0; display: inline; width: 400px; }
form#31224 p {float: left; margin: 0; padding: 0; display: inline; }
form#31224 label {float: left; margin: 0; padding: 0; display: inline; overflow: hidden; }
form#31224 input {float: left; margin: 0; padding: 0; display: inline; }
  form#31224 p#31225_C {clear: both; width: 400px; }
  form#31224 p#31225_C label {clear: both; width: 400px; }
  form#31224 p#31225_C input {clear: both; width: 396px; }
  form#31224 p#31228_C {clear: both; width: 400px; }
  form#31224 p#31228_C label {clear: both; width: 400px; }
  form#31224 p#31228_C input {clear: both; width: 396px; }
  form#31224 p#31227_C {clear: both; width: 400px; }
  form#31224 p#31227_C label {clear: both; width: 400px; }
  form#31224 p#31227_C input {clear: both; width: 396px; }
  form#31224 p#31226_C {clear: both; width: 400px; }
  form#31224 p#31226_C label {clear: both; width: 400px; }
  form#31224 p#31226_C input {clear: both; width: 396px; }

</style>
    </head>
    <body>
        
        <div id="header">
            <div id="title"><bean:message key="coordinacion.title"/></div>
            <div id="menu">
                <ul id="nav">
                    <% if(new Integer(session.getAttribute("tipoUsuario").toString()) == 0) {%>
                    <li><html:link action="/CoordinacionElim.do" paramId="idCoordinacion" paramName="idCoordinacion"><bean:message key="coordinacion.label1"/></html:link></li>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                    <li><html:link action="/CoordinacionCrearI.do"><bean:message key="coordinacion.label2"/></html:link></li>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                    <li><html:link action="/CoordinacionBuscarI.do"><bean:message key="coordinacion.label3"/></html:link></li>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                    <li><html:link action="/CoordinacionListarI.do"><bean:message key="coordinacion.label4"/></html:link></li>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                    <%} if(new Integer(session.getAttribute("tipoUsuario").toString()) != 2) {%>
                    <li><html:link action="/UsuarioCoordinacionCrearI.do" paramId="idCoordinacion" paramName="idCoordinacion"><bean:message key="coordinacion.label6"/></html:link></li>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                    <%}%>
                    <li><html:link action="/PlanDeEstudiosCoordinacionCrearI.do" paramId="idCoordinacion" paramName="idCoordinacion"><bean:message key="coordinacion.label8"/></html:link></li>
                </ul>
            </div>
        </div>
        <div id="body_wrapper">
            <div id="body">
                <div id="split">
                    <div class="top"></div>
                    <div id="left">
                        <div class="content">
                            ${empty msg ? "" : msg}
                <div class="box31224"><html:form styleId="F31224" action="/CoordinacionAct.do">
                  <html:hidden property="idCoordinacion"/><table>
                  <tr><td id="31228_C"><label for="31228"><bean:message key="FCoordinacion.label1"/></label></td><td>&nbsp;<html:text styleId="31228" property="nombre" size="30"/></td></tr>
                  <tr><td id="31227_C"><label for="31227"><bean:message key="FCoordinacion.label2"/></label></td><td>&nbsp;<html:text styleId="31227" property="direccion" size="30"/></td></tr>
                  <tr><td id="31226_C"><label for="31226"><bean:message key="FCoordinacion.label3"/></label></td><td>&nbsp;<html:text styleId="31226" property="telefono" size="30"/></td><tr>
                </table>
                  <html:submit styleClass="button"><bean:message key="coordinacion.label0"/></html:submit>
                </html:form></div>
                <h2><bean:message key="coordinacion.label5"/></h2>
                <table border="1">
                    <thead>
                        <tr>
                            <th>NombreUsuario</th>
                            <th>TipoUsuario</th>

                        </tr>
                    </thead>
                    <tbody><% request.setAttribute("_vacio", new Object[0]);%>
                        <logic:iterate id="usuario" collection="${empty L_Usuario ? _vacio : L_Usuario}">
                            <tr style="display:${usuario.tipoUsuario==0 ? "none" : ""}">
                                <td><html:link action="/UsuarioI.do" paramId="idUsuario" paramName="usuario" paramProperty="idUsuario">${usuario.tipoUsuario==0 ? "" : usuario.nombreUsuario}</html:link></td>
                                <td>
                                    ${usuario.tipoUsuario==1 ? "Coordinador" : ""}
                                    ${usuario.tipoUsuario==2 ? "Ayudante" : ""}
                                </td>
                            </tr>
                        </logic:iterate>
                    </tbody>
                </table><br>
                <h2><bean:message key="coordinacion.label7"/></h2>
                <table border="1">
                    <thead>
                        <tr>
                            <th>Carrera</th>
                            <th>Nivel</th>

                        </tr>
                    </thead>
                    <tbody><% request.setAttribute("_vacio", new Object[0]);%>
                        <logic:iterate id="planDeEstudios" collection="${empty L_PlanDeEstudios ? _vacio : L_PlanDeEstudios}">
                            <tr>
                                <td><html:link action="/PlanDeEstudiosI.do" paramId="idPlan" paramName="planDeEstudios" paramProperty="idPlan">${planDeEstudios.carrera}</html:link></td>
                                <td>${planDeEstudios.nivel}</td>

                            </tr>
                        </logic:iterate>
                    </tbody>
                </table>

                        </div>
                    </div>
                    <div id="right"><jsp:include page="/ppal/menu.jsp" flush="true"/></div>
                    <div class="clearer"></div>
                    <div class="bottom"></div>
                </div>
                <div class="clearer"></div>
            </div>
            <div class="clearer"></div>
        </div>
        <div id="end_body"></div>
        <h3 class="title"></h3>
        <div id="footer"> <bean:message key="bottom.label"/> </div>
        
    </body>
</html:html>